<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body>
	<table width="80%" align="center">
	<tr colspan="4" align="right"><a href="add.jsp">添加</a></tr>
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>密码</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${list }" var="bean">
			<tr>
			<td>${bean.id }</td>
			<td>${bean.username }</td>
			<td>${bean.password }</td>
			<td><a href="user/delete.do?id=${bean.id }">删除</a>
			<a href="user/${bean.id }/delete1.do">rest删除</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>